package serveur;

import java.io.IOException;
import java.net.ServerSocket;

public class Serveur {
	final static int port = 2012;
	final static int nbparties = 2;
	static int numPartieCourante = 0;
	protected static ServerSocket serv;
	protected static Thread connexion;
	protected static AccepterConnexion ac;



	public static void main (String argvs[]) {
		try {
			Serveur.serv = new ServerSocket(port);
			System.out.println("Serveur en attente sur le port " + port+".");
			
			ac =new AccepterConnexion(serv);
			
			connexion = new Thread(ac);
			connexion.start();	

		} catch (IOException e) {
			e.printStackTrace();
		}

	}

}
